//
//  Question.h
//  iSuDoku
//
//  Created by maccctk on 09-6-24.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

#define MAX_GAMES								999

#define GAME_EASY_R						0xa4
#define GAME_EASY_G						0xa4
#define GAME_EASY_B						0xa4

#define GAME_MEDIUM_R					0x0b
#define GAME_MEDIUM_G					0x61
#define GAME_MEDIUM_B					0x0b

#define GAME_HARD_R						0xae
#define GAME_HARD_G						0xb4
#define GAME_HARD_B						0x04

#define GAME_EVIL_R						0x38
#define GAME_EVIL_G						0x0b
#define GAME_EVIL_B						0x61

#define GAME_FINISH_R					0xdf
#define GAME_FINISH_G					0x74
#define GAME_FINISH_B					0x01

typedef struct {
	char x;
	char y;
	char digit;
	char board[9][9];
} board_item_t;

@interface Question : NSObject {
	char *list[400];
	int number;

	board_item_t stack[81];
	int stack_num;
	char calcLine[81];	
}

- (id)init;
- (char *)get:(int)i;
- (int)number;
- (bool)finished:(int)i;
- (void)finish:(int)i;
- (void)reset;

- (int)robot:(char [9][9])board :(void *restrict)myBoard1;

@end
